class CreateTweetsTable < ActiveRecord::Migration
  def self.up
    create_table :tweets do |t|
      t.text     :text
      t.datetime :tweet_created_at
      t.string   :tweet_id
      t.string   :user_name
      t.string   :user_screen_name
      t.string   :user_profile_image_url
      t.timestamps
    end
    
    add_index :tweets, :tweet_created_at
    add_index :tweets, :tweet_id, :unique => true
  end

  def self.down
    drop_table :tweets
  end
end
